//
//  AboutVC.swift
//  YueChat
//
//  Created by IMac on 2024/9/13.
//

import UIKit

class AboutVC: BaseVC {
    
    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
        self.navigationController?.isNavigationBarHidden = true
    }
    
    override func viewWillDisappear(_ animated: Bool) {
        super.viewWillDisappear(animated)
        self.navigationController?.isNavigationBarHidden = false
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        self.navigationItem.leftBarButtonItem = self.rt_customBackItemWithTarget(self, action: #selector(onBack), image: "w_back")
    }
    
    @IBAction func popback(_ sender: Any) {
        navigationController?.popViewController(animated: true)
    }
    @objc func onBack () {
        navigationController?.popViewController(animated: true)
    }

    //隐私政策
    @IBAction func privacyClick(_ sender: Any) {
//        let nav = MHHYNavigationVC(rootViewController: PrivacyWebVC(string: "http://www.tjlm.top/app-page/privacy-policy.html"))
//        self.presentVC(VC: nav)
        self.navigationController?.pushViewController(PrivacyWebVC(string: "http://www.tjlm.top/app-page/privacy-policy.html"), animated: true)
        
    }
    //用户协议
    @IBAction func serverClick(_ sender: Any) {
        self.navigationController?.pushViewController(PrivacyWebVC(string: "http://www.tjlm.top/app-page/term-of-service.html"), animated: true)
    }
    
 
    @IBAction func back(_ sender: Any) {
        self.dismiss(animated: true)
    }
    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
        // Get the new view controller using segue.destination.
        // Pass the selected object to the new view controller.
    }
    */

}
